package com.jic.member.service;

import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.member.entity.MemDiscountCardEntity;
import com.jic.member.request.MemDiscountCardBatchBindingRequest;
import com.jic.member.request.MemDiscountCardBindingRequest;
import com.jic.member.request.MemDiscountCardGenerateRequest;
import com.jic.member.request.MemDiscountCardRequest;
import com.jic.member.response.MemDiscountCardHistoryResponse;
import com.jic.member.response.MemDiscountCardResponse;

import java.util.List;


/**
 * 折扣卡生成
 * @since : 2020-07-02
 * @author MJ
 */
public interface MemDiscountCardService {

    RestResult<String> generateDiscountCard(MemDiscountCardGenerateRequest request);

    PageResult<MemDiscountCardResponse> queryDiscountCardList(MemDiscountCardRequest request);

    Integer bindingOrUntieDiscountCard(MemDiscountCardBindingRequest request);

    Long batchBindingOrUntieDiscountCard(MemDiscountCardBatchBindingRequest request);

    MemDiscountCardResponse queryBindingOrNoCount(MemDiscountCardBatchBindingRequest request);

    public void processGennerCode(List<MemDiscountCardEntity> list);

    List<MemDiscountCardHistoryResponse> discountCardHistory(MemDiscountCardRequest request);
}
